projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06d2eb3
)
Work around Cygwin bug with O_PATH
author
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 27 Jun 2019 20:05:05 +0000
(13:05 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Thu, 27 Jun 2019 20:05:39 +0000
(13:05 -0700)
Problem reported by Ken Brown (Bug#36405).
* src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef.
src/dired.c
patch
|
blob
|
history
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/dired.c
b/src/dired.c
index 493758292b96466ba5fcc6537cc2b1de2eb27c60..b8197d36a0264dfc096e27ed42c7418cfa3e6925 100644
(file)
--- a/
src/dired.c
+++ b/
src/dired.c
@@
-41,6
+41,10
@@
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include "buffer.h"
#include "coding.h"
+#ifdef __CYGWIN__
+# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7. */
+#endif
+
#ifdef MSDOS
#include "msdos.h" /* for fstatat */
#endif
diff --git
a/src/fileio.c
b/src/fileio.c
index ed1d2aedf3799e4240c26d656ae5ff504a432043..e36118652cbd03d523098f7192960c443a484da5 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-61,6
+61,10
@@
along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
# include <linux/fs.h>
#endif
+#ifdef __CYGWIN__
+# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7. */
+#endif
+
#ifdef WINDOWSNT
#define NOMINMAX 1
#include <windows.h>